/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pokergame;

import java.io.IOException;
import javax.swing.*;


/**
 *
 * @author Justin
 */
public class PokerGame
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException
    {
        PokerGUI gui = new PokerGUI();
        gui.Display();
        Object[] options = {"New...", "Load...", "Cancel"};
        JFrame frame = new JFrame("PokerGame");
        int check = JOptionPane.showOptionDialog(frame, "Welcome to Texas Hold-em Poker" ,"PokerGame", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.INFORMATION_MESSAGE, null, options, options[2]);
        if(check == 0)
        {
            String userName = (String)JOptionPane.showInputDialog(frame, "Please type your desired username (6-32 characters)","New User", JOptionPane.PLAIN_MESSAGE, null,null, "Username");
            String userName2 = (String)JOptionPane.showInputDialog(frame, "Please type your desired username (6-32 characters)","New User", JOptionPane.PLAIN_MESSAGE, null,null, "Username");
        }
        else if(check == 1)
        {
            //Load
        }
        else if (check == 2)
        {
            //Cancel and Exit
        }
        //gui.CheckWinner();
    }
}